<?php
/*
function __autoload($class){
	if(substr($class, 0, 3) == 'Kit'){
		$classPath = str_replace('_', '/', $class);
		$classPath .= '.php';
		include_once $classPath;
	}
}
$config = include_once('config.php');
Kit_Db_Manager::setConfig($config['database']);

$shopMode = new Kit_Model_Shoper();
$shopers = $shopMode->getFriends(1, 2);
print_r($shopers);
exit;
*/
?>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<ul>
<li><a href="browser/index.html">接口测试工具</a></li>
<li><a href="dbtool.php">数据工具</a></li>
</ul>
</body>
</html>
<?php 
exit;


try{
	//echo '<pre>';
	$config = include_once 'config.php';
	Kit_Db_Manager::setDbConfig($config['database']);
	$dao = new Kit_Dao_Shop();
	print_r($dao->getTableFields());
	
	Kit_Memcache_Manager::setConfig($config['memcache']);
	$memcache = Kit_Memcache_Manager::getMemcache('x01');
	//$username = $memcache->set('uname', 1, 10);
	$username = $memcache->get('uname');
	
	print_r($username);
	
	//print_r($memcache->getStatus());
	echo '</pre>';
}catch(Exception $e){
	print_r($e);
}